<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

</head>
<body>
    <div>
        <button id="sx">刷新</button>
    </div>
    <ul id="fs">

    </ul>
</body>

{include file="public/footer" /}
<script !src="">

    //获取所有用户列表
    function getUsers(){
        let uid = localStorage.getItem('uid');
        ws.send(JSON.stringify({uid:uid,type:"getUsers"}));
    }


    //刷新获取会员列表
    $("#sx").click(function(){
        getUsers();
    });

    //进入好友聊天页面
    function uli(fuid) {
        let uid = localStorage.getItem('uid');
        window.location.href = "http://8.130.18.175:9501/index/chat/index?uid="+uid+"&fuid="+fuid;
    }

    //添加好友
    function addfriend(fuid){
        let uid = localStorage.getItem('uid');
        ws.send(JSON.stringify({uid:uid,fuid:fuid,type:"addfriend"}));
    }
</script>